@file:OptIn(ExperimentalUuidApi::class)

package com.harth.blemultiplatform.ble

import no.nordicsemi.kotlin.ble.client.RemoteDescriptor
import kotlin.uuid.ExperimentalUuidApi
import kotlin.uuid.Uuid

class NativeDescriptor(val descriptor: RemoteDescriptor, override val characteristic: ICharacteristic): IDescriptor {
    override val uuid: Uuid
        get() = descriptor.uuid


    override suspend fun read(): ByteArray {
        return descriptor.read()
    }

    override suspend fun write(data: ByteArray) {
        descriptor.write(data)
    }
}